Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Bob_Zimmerman
Authority
Authority
Jump to solution

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 : [ - ]"
}
0 Kudos
1 Solution

Accepted Solutions
Omer_Kleinstern
Employee
Employee

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

View solution in original post

0 Kudos
5 Replies
PhoneBoy
Admin
Admin

Guessing that may not be something fully set table via the API.
@Omer_Kleinstern what say you?

0 Kudos
Bob_Zimmerman
Authority
Authority

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).

0 Kudos
PhoneBoy
Admin
Admin

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.

0 Kudos
Omer_Kleinstern
Employee
Employee

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

0 Kudos
Bob_Zimmerman
Authority
Authority

Thank you! I'll monitor and update this thread when the option appears.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events