- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Re: Removing a Protocol from a Service Object?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Removing a Protocol from a Service Object?
I see you can 'set services-tcp uid <UUID> protocol <protocol>' to add a protocol to a service, but is there a way to remove a protocol from a service? In SmartConsole, you set the protocol to -. I tried "None", "none", and a dash with no luck:
[Expert@DallasSA]# mgmt_cli -s session.txt -f json show service-tcp name testService
{
"uid" : "a10d3006-d85c-46de-b585-0112eb64ea5a",
"name" : "testService",
"type" : "service-tcp",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
},
"port" : "12345",
"protocol" : "DNS_TCP",
"match-by-protocol-signature" : false,
"override-default-settings" : false,
"session-timeout" : 3600,
"use-default-session-timeout" : true,
"match-for-any" : false,
"sync-connections-on-cluster" : true,
"aggressive-aging" : {
"enable" : true,
"timeout" : 600,
"use-default-timeout" : true,
"default-timeout" : 0
},
"keep-connections-open-after-policy-installation" : false,
"groups" : [ ],
"comments" : "",
"color" : "black",
"icon" : "Services/TCPService",
"tags" : [ ],
"meta-info" : {
"lock" : "locked by current session",
"validation-state" : "ok",
"last-modify-time" : {
"posix" : 1675031424431,
"iso-8601" : "2023-01-29T22:30+0000"
},
"last-modifier" : "WEB_API",
"creation-time" : {
"posix" : 1675031424431,
"iso-8601" : "2023-01-29T22:30+0000"
},
"creator" : "WEB_API"
},
"read-only" : false
}
[Expert@DallasSA]# mgmt_cli -s session.txt -f json set service-tcp uid a10d3006-d85c-46de-b585-0112eb64ea5a protocol "None"
{
"code" : "generic_err_invalid_parameter",
"message" : "Invalid parameter for [protocol]. No such protocol : [ None ]"
}
[Expert@DallasSA]# mgmt_cli -s session.txt -f json set service-tcp uid a10d3006-d85c-46de-b585-0112eb64ea5a protocol "none"
{
"code" : "generic_err_invalid_parameter",
"message" : "Invalid parameter for [protocol]. No such protocol : [ none ]"
}
[Expert@DallasSA]# mgmt_cli -s session.txt -f json set service-tcp uid a10d3006-d85c-46de-b585-0112eb64ea5a protocol "-"
{
"code" : "generic_err_invalid_parameter",
"message" : "Invalid parameter for [protocol]. No such protocol : [ - ]"
}
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Bob_Zimmerman ,
We will add the option to remove a protocol by providing "none" in in the next release and in future HFA of previous versions (PMTR-90609).
Thanks,
Omer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Guessing that may not be something fully set table via the API.
@Omer_Kleinstern what say you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just checked 'show generic-object', and it shows the protoType property changing from 'null' to a UUID when I set it. I tried "null", both in quotes and out of quotes, and quotes around an empty string. None of these threw errors, but they also didn't change the object's protocol (as expected).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wonder if you can use set generic-object to actually change the setting?
In any case, seems like a bug that this doesn't work correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Bob_Zimmerman ,
We will add the option to remove a protocol by providing "none" in in the next release and in future HFA of previous versions (PMTR-90609).
Thanks,
Omer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you! I'll monitor and update this thread when the option appears.