Skip to content

thomasmmc/sn_do

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sn_do

This is to talk to ServiceNow instances to work thru the data, generate statistics and other useful information

This is currently under aplha testing and will be updated rapidly

whats here

  • sn_do.rb - This is our SN_DO module and Classes for interacting with Incidents and Assets
  • example.rb - How to use SN_DO in a useful way calling most methods to meet some goals

install

Requires Ruby 2.0.0

gems used

require 'net/https'
require 'rexml/document'
require 'net/smtp'

usage

brief example

for using SN_DO and connecting to ServiceNow and getting a count

# SN_DO::INC.new('instance_name','username','password')
SN_DO::INC.new('demo017','admin','admin')
httpresult = SN_DO::INC.retrieve('XML','assignment_group', assign_group_id)
incident_list = SN_DO::INC.parse_xml(httpresult.body)
put incident_list.count

example.rb is going to have more detailed example then this

todo list

  • build tests
  • document things better
  • build out the asset class

About

Talk to ServiceNow instances and generate statistics and other useful information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages