-- ユーザーグループを削除
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -deleteUserGroup usergroup01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -deleteUserGroup usergroup02
-- セキュリティグループを削除
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -deleteSecurityGroup secgroup01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -deleteSecurityGroup secgroup02
-- ユーザーを削除
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -deleteUserAccount user01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -deleteUserAccount user02
-- ユーザーグループを一覧表示
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listUserGroups
-- ユーザーグループ内のユーザーを一覧表示
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listUserGroupMembers admin
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listUserGroupMembers level1
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listUserGroupMembers level2
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listUserGroupMembers guest
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listUserGroupMembers usergroup01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listUserGroupMembers usergroup02
-- セキュリティグループを一覧表示
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listSecurityGroups
-- セキュリティグループ内のユーザーグループを一覧表示
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listUserGroupsForSecurityGroup "デフォルトのセキュリティグループ"
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listUserGroupsForSecurityGroup "未解決のインシデント"
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listUserGroupsForSecurityGroup secgroup01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listUserGroupsForSecurityGroup secgroup02
-- セキュリティグループ内のノードを一覧表示
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listNodesInSecurityGroup "デフォルトのセキュリティグループ"
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listNodesInSecurityGroup "未解決のインシデント"
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listNodesInSecurityGroup secgroup01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -listNodesInSecurityGroup secgroup02
-- ユーザーを作成する
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -createUserAccount user01 -password user01 -role level1
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -createUserAccount user02 -password user02 -role level2
-- ユーザーグループを作成する
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -createUserGroup usergroup01 -displayName usergroup01 -description usergroup01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -createUserGroup usergroup02 -displayName usergroup02 -description usergroup02
-- ユーザーグループにユーザーを割り当てる
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -assignUserToGroup -user user01 -userGroup usergroup01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -assignUserToGroup -user user02 -userGroup usergroup02
-- セキュリティグループを作成する
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -createSecurityGroup secgroup01 -description secgroup01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -createSecurityGroup secgroup02 -description secgroup02
-- セキュリティグループにユーザーグループを割り当てる
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -assignUserGroupToSecurityGroup -userGroup usergroup01 -securityGroup secgroup01 -role level1
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -assignUserGroupToSecurityGroup -userGroup usergroup02 -securityGroup secgroup02 -role level2
-- セキュリティグループをノードに割り当てる
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -assignNodeToSecurityGroup -node 192.168.137.211 -securityGroup secgroup01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -assignNodeToSecurityGroup -node 192.168.137.212 -securityGroup secgroup01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -assignNodeToSecurityGroup -node 192.168.137.213 -securityGroup secgroup01
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -assignNodeToSecurityGroup -node 192.168.137.214 -securityGroup secgroup02
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -assignNodeToSecurityGroup -node 192.168.137.215 -securityGroup secgroup02
-- セキュリティ構成レポートを表示
/opt/OV/bin/nnmsecurity.ovpl -u jp1user -p jp1user -displayConfigReport