view release on metacpan or search on metacpan
lib/FusionInventory/Agent/Task/Inventory/Generic/Firewall/Systemd.pm view on Meta::CPAN
sub _getFirewallStatus {
my (%params) = @_;
my $lines = getAllLines(
command => 'systemctl status firewalld.service',
%params
);
# multiline regexp to match for example :
# Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
# Active: active (running) since Tue 2017-03-14 15:33:24 CET; 1h 16min ago
# This permits to check if service is loaded, enabled and active
return ($lines =~ /^\s*Loaded: loaded [^;]+firewalld[^;]*; [^;]*;[^\n]*\n\s*Active: active \(running\)/m) ?
STATUS_ON :
STATUS_OFF;
}
1;
lib/FusionInventory/Agent/Tools/Linux.pm view on Meta::CPAN
package FusionInventory::Agent::Tools::Linux;
use strict;
use warnings;
use parent 'Exporter';
# Constant for ethtool system call
use constant SIOCETHTOOL => 0x8946 ; # See linux/sockios.h
use constant ETHTOOL_GSET => 0x00000001 ; # See linux/ethtool.h
use constant SPEED_UNKNOWN => 65535 ; # See linux/ethtool.h, to be read as -1
use English qw(-no_match_vars);
use File::Basename qw(basename dirname);
use Memoize;
use Socket qw(PF_INET SOCK_DGRAM);
use FusionInventory::Agent::Tools;
use FusionInventory::Agent::Tools::Unix;
lib/FusionInventory/Agent/Tools/Linux.pm view on Meta::CPAN
socket(my $socket, PF_INET, SOCK_DGRAM, 0)
or return ;
# Pack command in ethtool_cmd struct
my $cmd = pack("L3SC6L2SC2L3", ETHTOOL_GSET);
# Pack request for ioctl
my $request = pack("a16p", $params{interface}, $cmd);
my $retval = ioctl($socket, SIOCETHTOOL, $request) || -1;
return if ($retval < 0);
# Unpack returned datas
my @datas = unpack("L3SC6L2SC2L3", $cmd);
# Actually only speed value is requested and extracted
my $datas = {
SPEED => $datas[3]|$datas[12]<<16
};
resources/esx-4.1.0-1/RetrieveProperties.soap view on Meta::CPAN
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="HostSystem">ha-host</obj><propSet><name>availableField</name><val xsi:type="ArrayOfCustomFieldDef"></val></propSet><propSet><name>capability</name><val xsi:type="HostCapability"><rec...
</soapenv:Body>
</soapenv:Envelope>
resources/generic/batteries/upower/infos_1.txt view on Meta::CPAN
native-path: BAT1
model: G71C000G7210
serial: 0
power supply: yes
updated: mar. 21 févr. 2017 10:20:29 CET (1 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
warning-level: none
energy: 39,264 Wh
energy-empty: 0 Wh
energy-full: 39,264 Wh
resources/generic/teamviewer/teamviewer-15.11.6-RPM view on Meta::CPAN
[1m TeamViewer [0m 15.11.6 (RPM)
[1m TeamViewer ID: [0m 999 **MASKED**
[1m teamviewerd status [0m * teamviewerd.service - TeamViewer remote control daemon
Loaded: loaded (/etc/systemd/system/teamviewerd.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2020-11-11 15:03:02 CET; 4 days ago
Main PID: 1098829 (teamviewerd)
Tasks: 13 (limit: 4654)
Memory: 3.5M
CGroup: /system.slice/teamviewerd.service
`-1098829 /opt/teamviewer/tv_bin/teamviewerd -d
Nov 11 15:03:02 nanobox systemd[1]: Starting TeamViewer remote control daemon...
Nov 11 15:03:02 nanobox systemd[1]: teamviewerd.service: Can't open PID file /run/teamviewerd.pid (yet?) after start: Operation not permitted
Nov 11 15:03:02 nanobox systemd[1]: Started TeamViewer remote control daemon.
Nov 11 15:03:57 nanobox systemd[1]: /etc/systemd/system/teamviewerd.service:9: PIDFile= references a path below legacy directory /var/run/, updating /var/run/teamviewerd.pid â /run/teamviewerd.pid; please update the unit file accordingly.
resources/linux/firewall/fedora_systemctl_status_firewalld.service_ON.txt view on Meta::CPAN
â firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2017-03-14 15:33:24 CET; 1h 16min ago
Docs: man:firewalld(1)
Main PID: 698 (firewalld)
Tasks: 3 (limit: 4915)
CGroup: /system.slice/firewalld.service
ââ698 /usr/bin/python3 -Es /usr/sbin/firewalld --nofork --nopid
Mar 14 15:33:20 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
Mar 14 15:33:24 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
Mar 14 15:33:29 localhost.localdomain /firewalld[698]: WARNING: FedoraServer: INVALID_SERVICE: cockpit
resources/linux/firewall/fedora_systemctl_status_firewalld.service_ON_disabled.txt view on Meta::CPAN
â firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2017-03-14 15:33:24 CET; 1h 34min ago
Docs: man:firewalld(1)
Main PID: 698 (firewalld)
CGroup: /system.slice/firewalld.service
ââ698 /usr/bin/python3 -Es /usr/sbin/firewalld --nofork --nopid
Mar 14 15:33:20 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
Mar 14 15:33:24 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
Mar 14 15:33:29 localhost.localdomain /firewalld[698]: WARNING: FedoraServer: INVALID_SERVICE: cockpit
resources/linux/smartctl/sample1 view on Meta::CPAN
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Device Model: SAMSUNG SSD PM800 TM 128GB
Serial Number: DFW1W11002SE002B3117
Firmware Version: VBM24D1Q
User Capacity: 128 035 676 160 bytes
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 7
ATA Standard is: ATA/ATAPI-7 T13 1532D revision 1
Local Time is: Thu Dec 23 15:15:06 2010 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
resources/linux/storages/ubuntu-18.04.5-xps.dump view on Meta::CPAN
Model Number: PM951 NVMe SAMSUNG 256GB
Serial Number: S29NNXAH146772
Firmware Version: BXV77D0Q
PCI Vendor/Subsystem ID: 0x144d
IEEE OUI Identifier: 0x002538
Controller ID: 1
Number of Namespaces: 1
Namespace 1 Size/Capacity: 256,060,514,304 [256 GB]
Namespace 1 Utilization: 237,923,311,616 [237 GB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Wed Nov 25 14:41:29 2020 CET
',
'sys' => {
'block' => {
'loop0' => {},
'loop1' => {},
'loop10' => {},
'loop11' => {},
'loop12' => {},
'loop13' => {},
share/edid.ids view on Meta::CPAN
APL __ Aplicom Oy
APM __ Applied Memory Tech
APN __ Appian Tech Inc
APP __ Apple Computer Inc
APR __ Aprilia s.p.a.
APS __ Autologic Inc
APT __ Audio Processing Technology Ltd
APV __ A+V Link
APX __ AP Designs Ltd
ARC __ Alta Research Corporation
ARE __ ICET S.p.A.
ARG __ Argus Electronics Co., LTD
ARI __ Argosy Research Inc
ARK __ Ark Logic Inc
ARL __ Arlotto Comnet Inc
ARM __ Arima
ARO __ Poso International B.V.
ARS __ Arescom Inc
ART __ Corion Industrial Corporation
ASC __ Ascom Strategic Technology Unit
ASD __ USC Information Sciences Institute
share/edid.ids view on Meta::CPAN
CDV __ Convergent Design Inc.
CEA __ Consumer Electronics Association
CEC __ Chicony Electronics Company Ltd
CED __ Cambridge Electronic Design Ltd
CEF __ Cefar Digital Vision
CEI __ Crestron Electronics, Inc.
CEM __ MEC Electronics GmbH
CEN __ Centurion Technologies P/L
CEP __ C-DAC
CER __ Ceronix
CET __ TEC CORPORATION
CFG __ Atlantis
CGA __ Chunghwa Picture Tubes, LTD
CGS __ Chyron Corp
CGT __ congatec AG
CHA __ Chase Research PLC
CHC __ Chic Technology Corp.
CHD __ ChangHong Electric Co.,Ltd
CHE __ Acer Inc
CHG __ Sichuan Changhong Electric CO, LTD.
CHI __ Chrontel Inc
share/pci.ids view on Meta::CPAN
ae29 MIS-L
ae2a MPC
ae2b MIS-E
ae31 System Management Controller
ae32 Netelligent 10/100 TX PCI UTP
ae33 Triflex Dual EIDE Controller
ae34 Netelligent 10 T PCI UTP
ae35 Integrated NetFlex-3/P
ae40 Netelligent Dual 10/100 TX PCI UTP
ae43 Netelligent Integrated 10/100 TX UTP
ae69 CETUS-L
ae6c Northstar
ae6d NorthStar CPU to PCI Bridge
b011 Netelligent 10/100 TX Embedded UTP
b012 Netelligent 10 T/2 PCI UTP/Coax
b01e NC3120 Fast Ethernet NIC
b01f NC3122 Fast Ethernet NIC
b02f NC1120 Ethernet NIC
b030 Netelligent 10/100 TX UTP
b04a 10/100 TX PCI Intel WOL UTP Controller
b060 Smart Array 5300 Controller
t/tasks/inventory/linux/softwares.t view on Meta::CPAN
#!/usr/bin/perl
use strict;
use warnings;
use lib 't/lib';
use Config;
use English qw(-no_match_vars);
$ENV{TZ} = 'CET';
use Test::Deep;
use Test::Exception;
use Test::More;
use Test::NoWarnings;
use FusionInventory::Test::Inventory;
use FusionInventory::Agent::Task::Inventory::Generic::Softwares::RPM;
use FusionInventory::Agent::Task::Inventory::Generic::Softwares::Deb;
use FusionInventory::Agent::Task::Inventory::Generic::Softwares::Gentoo;