Forum Discussion
RudiVanSchalkwy
Nimbostratus
Jul 17, 2019TMSH Command via Python SDK
I was hoping to get some assistance in executing TMSH commands via the Python SDK. From the documentation i can easily execute any BASH command but i'm struggling with TMSH commands. I need to e...
- Jul 22, 2019
Hello Rudi.
Here an example to get access to the status object
from f5.bigip import ManagementRoot # ---------------------------------------------------------- session = ManagementRoot("F5_mgmt_IP","username","password",token=True) status = session.tm.cm.sync_status.load() print(status.raw)
In general in SDK there are 3 kind of objects, here is some documentation.
Tutorial for accessing
- Collections
- Named Resources
REF - https://devcentral.f5.com/s/articles/getting-started-with-the-f5-common-python-sdk-27438
Tutorial for accessing
- Unnamed Resources
Hope this helps.
KR,
Dario.
Hi Aaron,
Enabling oneconnect profile resolved the issue.
Thanks
Raj
I've tried the K56602501 instructions but get nothing, i've got to be missing something.
- modify syslog {
auth-priv-from notice
auth-priv-to emerg
cron-from warning
cron-to emerg
daemon-from notice
daemon-to emerg
description none
include none
iso-date disabled
kern-from notice
kern-to emerg
mail-from notice
mail-to emerg
messages-from notice
messages-to warning
remote-servers none
user-log-from notice
user-log-to emerg
}
- Replace the include none line with the desired syslog filter. For example, to configure syslog-ng to log warning through emergency log level messages to UDP port 514 on destination hosts 192.168.1.1 and 192.168.1.2, use the following syntax:
include "
filter f_audit{
match(AUDIT);
};
destination d_syslog_server {
udp(\"192.168.1.1\" port (514));
udp(\"192.168.1.2\" port (514));
};
log {
source(s_syslog_pipe);
filter(f_audit);
destination(d_syslog_server);
};
"
- modify syslog {
- Leslie_HubertusMay 01, 2023Ret. Employee
Hey Oly_r - I see that nobody has replied yet, so I'm featuring your post in this week's Community Highlights article in order to boost visibility for you.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects