Last active
August 17, 2020 18:22
-
-
Save andrewchumchal/afce64e1e43d8bde87a3133bc7280f7c to your computer and use it in GitHub Desktop.
Computer ServiceNow Check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (fsFunction == 'Computer' || fsFunction == 'Server'){ | |
if (computerServerClass == "Linux" && classIpAddress == vcenterServerIp) { | |
className = 'cmdb_ci_vcenter'; | |
gs.debug("Forscout - This is an vCenter System [ " + className + "], [ " + computerServerClass + "]." ); | |
}else if (computerServerClass == "Linux" || computerServerClass == "CentOS" || computerServerClass == "Ubuntu"){ | |
className = 'cmdb_ci_linux_server'; | |
gs.debug("Forscout - This is an Linux System [ " + className + "], [ " + computerServerClass + "]." ); | |
} else if (computerServerClass == 'Windows' || computerServerClass == 'Windows 7 Professional SP1' || computerServerClass == 'Windows Server 2008 R2' || computerServerClass =='Windows Server 2012' || computerServerClass =='Windows Server 2012 Standard' ){ | |
className = 'cmdb_ci_win_server'; | |
gs.debug("Forscout - This is an Windows System [ " + className + "], [ " + computerServerClass + "]." ); | |
} | |
return className; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know why the formatting is weird